package org.springblade.oa.service;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.springblade.oa.entity.Bx;
import org.springblade.core.mp.base.BaseService;
import org.springblade.oa.vo.ExpenseAccount;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @version 1.0.0
 * @Title: IBxService.java
 * @Description: TODO
 */
public interface IBxService extends BaseService<Bx> {
	/**
	 * 新增或修改
	 *
	 * @return
	 */
	boolean submit(Bx bx);

	/**
	 * 导出
	 *
	 * @return
	 */
	HSSFWorkbook export(List<Map<String, Object>> allBxMapList, HttpServletResponse response );
	/**
	 *获取今天报销单据总条数
	 */
	Integer todayCount(Integer bxdw);
	/**
	 * 报销列表
	 */
	List<Bx> getList(Integer userId,Integer bxlx,Integer shzt);

	Workbook exportBx(ExpenseAccount expenseAccount);

}
